gtk4.git
12 years agobroadway: Add initial touch event support
Alexander Larsson [Tue, 12 Nov 2013 15:11:15 +0000 (16:11 +0100)]
broadway: Add initial touch event support

This seems to get something going on an ipad, but some events seem
to get swallowed. For instance, window dragging doesn't work.

12 years agobroadway: Disable all kinds of viewport scrolling and zooming
Alexander Larsson [Tue, 12 Nov 2013 12:44:27 +0000 (13:44 +0100)]
broadway: Disable all kinds of viewport scrolling and zooming

12 years agobroadway: Raise window on first click.
Alexander Larsson [Tue, 12 Nov 2013 11:36:05 +0000 (12:36 +0100)]
broadway: Raise window on first click.

12 years agobroadway: Add raise/lower ops
Alexander Larsson [Tue, 12 Nov 2013 11:23:58 +0000 (12:23 +0100)]
broadway: Add raise/lower ops

12 years agobroadway: use 'click-to-focus' approach instead of 'focus-follows-mouse'
Alexander Larsson [Tue, 12 Nov 2013 11:03:50 +0000 (12:03 +0100)]
broadway: use 'click-to-focus' approach instead of 'focus-follows-mouse'

The broadway backend would move the focus from one window to another based on
where the mouse was (i.e. 'focus-follows-mouse' approach). Handling the focus
this wait didn't play well with widgets which rely on focus-in-event and
focus-out-event, like the GtkEntry when using a completion popup window, see
e.g:
  https://bugzilla.gnome.org/show_bug.cgi?id=708984

So instead, setup broadway to require a click in a window to move the focus
(i.e. 'click-to-focus' approach):

 * The implicit GDK_FOCUS_CHANGE events that were generated upon reception of
   BROADWAY_EVENT_ENTER or BROADWAY_EVENT_LEAVE are removed.

 * The broadway daemon will now keep track of which is the focused window

 * Whenever the daemon detects an incoming BROADWAY_EVENT_BUTTON_PRESS, it will
   trigger the focused window switch, which sends a new BROADWAY_EVENT_FOCUS to
   the client, specifying which windows holds the focus.

 * Upon reception of a BROADWAY_EVENT_FOCUS, the client will generate a new
   GDK_FOCUS_CHANGE.

 * gdk_broadway_window_focus() was also implemented, which now requests the
   focus to the broadway server using a new BROADWAY_REQUEST_FOCUS_WINDOW.

This is based on an initial patch from Aleksander Morgado <aleksander@lanedo.com>.

12 years agoHandle recursion from motion event handlers
Owen W. Taylor [Mon, 11 Nov 2013 23:04:34 +0000 (18:04 -0500)]
Handle recursion from motion event handlers

If a motion event handler (or other handler running from the flush-events
phase of the frame clock) recursed the main loop then flushing wouldn't
complete until after the recursed main loop returned, and various aspects
of the state would get out of sync.

To fix this, change flushing of the event queue to simply mark events as
ready to flush, and let normal event delivery handle the rest.

https://bugzilla.gnome.org/show_bug.cgi?id=705176

12 years agotreeview: fix dragging of columns in mutter
Matthias Clasen [Tue, 12 Nov 2013 03:53:12 +0000 (22:53 -0500)]
treeview: fix dragging of columns in mutter

Don't recurse the mainloop in _gtk_tree_view_column_start_drag().
It doesn't serve any discernible purpose, and recursing the
mainloop from the flush-events phas of the frame clock breaks
frame synchronization with mutter.

https://bugzilla.gnome.org/show_bug.cgi?id=705176

12 years agogtkpixelcache: Fix possibly ignoring queued redraw
Olivier Brunel [Tue, 5 Nov 2013 18:21:28 +0000 (19:21 +0100)]
gtkpixelcache: Fix possibly ignoring queued redraw

If a queue_redraw() (invalidating a region, or the whole widget) was
called from the draw() call, it could get ignored if surface_dirty
existed, as it would then be updated, but destroyed right at the end of
the _gtk_pixel_cache_repaint(), leading the next call to
_gtk_pixel_cache_draw() have its call to repaint() be a no-op
(since there's no surface_dirty) and then simply draw from (non
updated) surface.

Signed-off-by: Olivier Brunel <jjk@jjacky.com>
https://bugzilla.gnome.org/show_bug.cgi?id=711545

12 years agoFix warning with event compression on a destroyed window
Owen W. Taylor [Mon, 11 Nov 2013 23:17:38 +0000 (18:17 -0500)]
Fix warning with event compression on a destroyed window

Fix a critical message when we try to compress events for a window
that was already destroyed.

12 years agoUpdated Greek translation
Dimitris Spingos [Mon, 11 Nov 2013 15:33:45 +0000 (17:33 +0200)]
Updated Greek translation

12 years agoProgress bar: Handle 'no more pulse'
Matthias Clasen [Mon, 11 Nov 2013 12:24:35 +0000 (07:24 -0500)]
Progress bar: Handle 'no more pulse'

Before smooth animation, stopping the pulse would abruptly stop
the bouncy bar. This change makes it so that we slow down for
a bit, and then stop.

12 years agowidget-factory: Make the activity mode more complete
Matthias Clasen [Mon, 11 Nov 2013 12:22:51 +0000 (07:22 -0500)]
widget-factory: Make the activity mode more complete

Test the 'no more pulse' situation. When the slider goes all
the way to the right towards slow, we remove the pulse timeout.

12 years agoUpdate drawing model docs
Matthias Clasen [Sun, 10 Nov 2013 08:25:48 +0000 (03:25 -0500)]
Update drawing model docs

Include material from Alex' blog post about the modern GTK+
rendering model.

12 years agoMake activity mode progress bars animate better
Matthias Clasen [Sun, 10 Nov 2013 06:20:27 +0000 (01:20 -0500)]
Make activity mode progress bars animate better

Use a tick callback and move the block each frame, instead
of making it jump only when gtk_progress_bar_pulse() is called.

12 years agoMake the progress bar speed variable
Matthias Clasen [Sun, 10 Nov 2013 06:15:59 +0000 (01:15 -0500)]
Make the progress bar speed variable

Arrange for the scales to control the speed of the activity
mode progress bar in gtk3-widget-factory. This will be useful
in demonstrating smoother progress bar animation in the future.

12 years agoMove a function around
Matthias Clasen [Sun, 10 Nov 2013 00:27:53 +0000 (19:27 -0500)]
Move a function around

_Gtk_file_chooser_label_for_file is not actually
used in gtkfilechooserdefault.c anymore, so move
it to a better place.

12 years agoSilence a compiler warning
Matthias Clasen [Sun, 10 Nov 2013 00:26:22 +0000 (19:26 -0500)]
Silence a compiler warning

12 years agoFilter out duplicate application shortcuts
Matthias Clasen [Sun, 10 Nov 2013 00:01:27 +0000 (19:01 -0500)]
Filter out duplicate application shortcuts

The file chooser used to do this, the places sidebar
still needs to learn it.

https://bugzilla.gnome.org/show_bug.cgi?id=711636

12 years agoTest duplicate shortcuts
Matthias Clasen [Sun, 10 Nov 2013 00:00:17 +0000 (19:00 -0500)]
Test duplicate shortcuts

Add an application shortcut for the Music folder in testfilechooser.
The file chooser used to filter duplicates out, but this broke
in the sidebar merge.

12 years agoGtkFileChooser: propagate local-only to sidebar
Matthias Clasen [Sat, 9 Nov 2013 23:29:10 +0000 (18:29 -0500)]
GtkFileChooser: propagate local-only to sidebar

This fixes a regression from the sidebar merge.

12 years agoGtkPlacesSidebar: Add local-only
Matthias Clasen [Sat, 9 Nov 2013 23:28:12 +0000 (18:28 -0500)]
GtkPlacesSidebar: Add local-only

This is necessary to implement the filechooser property
of the same name.

https://bugzilla.gnome.org/show_bug.cgi?id=711574

12 years agoUpdate coding style
Matthias Clasen [Sat, 9 Nov 2013 22:28:02 +0000 (17:28 -0500)]
Update coding style

gtkplacessidebar.c was looking foreign.

12 years agoUpdated British English translation
Bruce Cowan [Sat, 9 Nov 2013 21:52:20 +0000 (21:52 +0000)]
Updated British English translation

12 years agoProperly set drop targets
Matthias Clasen [Sat, 9 Nov 2013 20:20:02 +0000 (15:20 -0500)]
Properly set drop targets

Pointed out in by Nelson Benitez in bug 707679.

12 years agoGtkFileChooserDefault: Drop some unused struct members
Matthias Clasen [Sat, 9 Nov 2013 19:50:13 +0000 (14:50 -0500)]
GtkFileChooserDefault: Drop some unused struct members

12 years agoCosmetic cleanups
Matthias Clasen [Sat, 9 Nov 2013 19:27:08 +0000 (14:27 -0500)]
Cosmetic cleanups

Simplify and rename some callbacks.

12 years agomenushell/toolbar/window: implement toggle maximize on double click
Lionel Landwerlin [Wed, 15 May 2013 21:18:05 +0000 (22:18 +0100)]
menushell/toolbar/window: implement toggle maximize on double click

https://bugzilla.gnome.org/show_bug.cgi?id=700419

12 years agoSlow down about dialog animation a bit
Matthias Clasen [Sat, 9 Nov 2013 18:43:54 +0000 (13:43 -0500)]
Slow down about dialog animation a bit

12 years agoUpdate copyright year
Matthias Clasen [Sat, 9 Nov 2013 18:39:48 +0000 (13:39 -0500)]
Update copyright year

12 years agotoolbar: implement minimum and natural sizes in _get_preferred family
Jonh Wendell [Wed, 31 Jul 2013 14:42:50 +0000 (11:42 -0300)]
toolbar: implement minimum and natural sizes in _get_preferred family

currently it's using the same sizes for natural and minimum, but it
happens that, when it's allowed to use the arrow, the minimum size
can be smaller than natural.

https://bugzilla.gnome.org/show_bug.cgi?id=693227

12 years agoFix testtoolbar
Matthias Clasen [Sat, 9 Nov 2013 18:23:47 +0000 (13:23 -0500)]
Fix testtoolbar

The conversion from stock to icon names left some items without
a label, which in turn shows up as empty menuitems in the overflow
menu.

12 years agogdk/win32: remove extra allocation for \r removal
Marc-André Lureau [Wed, 6 Nov 2013 13:33:19 +0000 (14:33 +0100)]
gdk/win32: remove extra allocation for \r removal

Although I can't find explicit documentation for clipboard pointer, it
seems to be possible to modify clibpoard memory without side-effects.

According to MSDN,
http://msdn.microsoft.com/en-us/library/windows/desktop/aa366596%28v=vs.85%29.aspx

"The global and local functions are supported for porting from 16-bit
code, or for maintaining source code compatibility with 16-bit
Windows. Starting with 32-bit Windows, the global and local functions
are implemented as wrapper functions that call the corresponding heap
functions using a handle to the process's default heap."

"Memory objects allocated by GlobalAlloc and LocalAlloc are in private,
committed pages with read/write access that cannot be accessed by other
processes. Memory allocated by using GlobalAlloc with GMEM_DDESHARE is
not actually shared globally as it is in 16-bit Windows. This value has
no effect and is available only for compatibility. "

https://bugzilla.gnome.org/show_bug.cgi?id=711553

12 years agogtkprintbackendfile: Check the GtkPrintSettings passed to file_printer_get_options...
Carlos Garcia Campos [Fri, 8 Nov 2013 14:42:15 +0000 (15:42 +0100)]
gtkprintbackendfile: Check the GtkPrintSettings passed to file_printer_get_options is not NULL before using it

https://bugzilla.gnome.org/show_bug.cgi?id=703784

12 years agoGtkListBox: Expand the placeholder
Timm Bäder [Fri, 1 Nov 2013 11:30:07 +0000 (12:30 +0100)]
GtkListBox: Expand the placeholder

https://bugzilla.gnome.org/show_bug.cgi?id=711255

12 years agostack: Use g_object_notify_by_pspec()
David King [Tue, 5 Nov 2013 10:18:37 +0000 (10:18 +0000)]
stack: Use g_object_notify_by_pspec()

https://bugzilla.gnome.org/show_bug.cgi?id=711611

12 years agostack: Use g_object_class_install_properties()
David King [Tue, 5 Nov 2013 10:11:35 +0000 (10:11 +0000)]
stack: Use g_object_class_install_properties()

https://bugzilla.gnome.org/show_bug.cgi?id=711611

12 years agoreftests: Fix CSS for tests after :link introduction
Benjamin Otte [Sat, 9 Nov 2013 15:42:29 +0000 (16:42 +0100)]
reftests: Fix CSS for tests after :link introduction

12 years agoAdd an index for new gdk api
Matthias Clasen [Sat, 9 Nov 2013 05:00:16 +0000 (00:00 -0500)]
Add an index for new gdk api

12 years agoAdd an event_compression setting to GdkWindow
Daniel Sabo [Tue, 29 Oct 2013 21:43:05 +0000 (14:43 -0700)]
Add an event_compression setting to GdkWindow

Setting event compression to false will allow inter-frame
mouse motion events to be delivered, which are necessary
for painting applications to produce smooth strokes.

https://bugzilla.gnome.org/show_bug.cgi?id=702392

12 years agowidget-factory: polish the layout
William Jon McCann [Wed, 6 Nov 2013 22:18:33 +0000 (17:18 -0500)]
widget-factory: polish the layout

Add a bit more breathing room and put similar widgets together.

12 years agobroadway: Add buffer decoding colorizing
Alexander Larsson [Fri, 8 Nov 2013 09:37:00 +0000 (10:37 +0100)]
broadway: Add buffer decoding colorizing

If you add ?debug=decoding to the url you will get colorized debug
info for the buffer decoder.

12 years agobroadway: Extract buffer decoding to separate helper
Alexander Larsson [Fri, 8 Nov 2013 09:13:12 +0000 (10:13 +0100)]
broadway: Extract buffer decoding to separate helper

12 years agodemo: Make sure to add gtk3-widget-factory.desktop to tarball
Rico Tzschichholz [Thu, 7 Nov 2013 22:14:54 +0000 (23:14 +0100)]
demo: Make sure to add gtk3-widget-factory.desktop to tarball

In addition to 721cdfd966c41b8fb57f77e9c0e409c6a7a98b03

12 years agoDoc: add missing GtkPrintSettings symbols
Sébastien Wilmet [Sun, 3 Nov 2013 18:48:50 +0000 (19:48 +0100)]
Doc: add missing GtkPrintSettings symbols

The symbols are documented, they were just missing in gtk3-sections.txt.

https://bugzilla.gnome.org/show_bug.cgi?id=711354

12 years agodemo: Make sure to add gtk3-demo.desktop to tarball
Rico Tzschichholz [Thu, 7 Nov 2013 17:28:23 +0000 (18:28 +0100)]
demo: Make sure to add gtk3-demo.desktop to tarball

In addition to fc71414ada5b270a4c6c9775225f5cdc5d303f63

12 years agobroadway: Add rawinflate.min.js to EXTRA_DIST
Rico Tzschichholz [Thu, 7 Nov 2013 16:44:08 +0000 (17:44 +0100)]
broadway: Add rawinflate.min.js to EXTRA_DIST

In addition to 149b3af105bd493cf267a1b69a3661cdfa88a46c

12 years agobroadway: Use zlib compression for broadway buffers
Alexander Larsson [Thu, 7 Nov 2013 12:54:54 +0000 (13:54 +0100)]
broadway: Use zlib compression for broadway buffers

This imports the MIT licensed js unzip from:
https://github.com/imaya/zlib.js

and uses it to decompress in js on the client side.

12 years agoSwitch from sending png frames to our own encoding
Alexander Larsson [Thu, 7 Nov 2013 11:22:38 +0000 (12:22 +0100)]
Switch from sending png frames to our own encoding

This is based on the rolling hashes code from
http://cgit.freedesktop.org/~krh/weston/log/?h=remote

It works by incrementally calculating hashes for every 32x32 block
in each frame sent, and then refering back to such blocks when
encoding the next frame. This means we detect when a block matches
an existing block in the previous frame in a different position.
This is great for detecting scrolling, which we need now that
the gdk level scrolling is neutered.

12 years agobroadway: Always use client side decorations
Alexander Larsson [Wed, 6 Nov 2013 12:28:52 +0000 (13:28 +0100)]
broadway: Always use client side decorations

12 years agobroadway: Implement gdk_window_begin_move_drag()
Alexander Larsson [Wed, 6 Nov 2013 12:28:12 +0000 (13:28 +0100)]
broadway: Implement gdk_window_begin_move_drag()

12 years agobroadway: Add gdkbroadwaydisplay.h include
Alexander Larsson [Wed, 6 Nov 2013 12:11:54 +0000 (13:11 +0100)]
broadway: Add gdkbroadwaydisplay.h include

12 years agobroadway: Simplify frame handling and make it ARGB32
Alexander Larsson [Wed, 6 Nov 2013 11:54:37 +0000 (12:54 +0100)]
broadway: Simplify frame handling and make it ARGB32

This completely removes the delta compression and makes all buffers ARGB.
This is obviously slower, but this will be re-integrated later.

12 years agobroadway: Remove window translation code
Alexander Larsson [Wed, 6 Nov 2013 11:31:27 +0000 (12:31 +0100)]
broadway: Remove window translation code

This is no longer used as we neutered gdk_window_scroll & co.

12 years agowidget-factory: Update copyright in about dialog
Jasper St. Pierre [Wed, 6 Nov 2013 17:51:29 +0000 (12:51 -0500)]
widget-factory: Update copyright in about dialog

12 years agowidget-factory: Make the About dialog actually transient
Jasper St. Pierre [Wed, 6 Nov 2013 17:50:31 +0000 (12:50 -0500)]
widget-factory: Make the About dialog actually transient

It's an app action, not a window action.

12 years agoUse a big icon in the stack example
Matthias Clasen [Wed, 6 Nov 2013 02:47:29 +0000 (21:47 -0500)]
Use a big icon in the stack example

We used a 256x256 before. Keep doing that.

12 years agoUpdated POTFILES.skip
Piotr Drąg [Tue, 5 Nov 2013 23:18:56 +0000 (00:18 +0100)]
Updated POTFILES.skip

12 years agowidget-factory: use new icon instead of gtk logo
William Jon McCann [Tue, 5 Nov 2013 21:39:50 +0000 (16:39 -0500)]
widget-factory: use new icon instead of gtk logo

12 years agowidget-factory: add icon
William Jon McCann [Tue, 5 Nov 2013 21:32:30 +0000 (16:32 -0500)]
widget-factory: add icon

12 years agodemo: use the installed named icon
William Jon McCann [Tue, 5 Nov 2013 20:29:54 +0000 (15:29 -0500)]
demo: use the installed named icon

12 years agodemo: Add desktop file
William Jon McCann [Tue, 5 Nov 2013 15:20:49 +0000 (10:20 -0500)]
demo: Add desktop file

12 years agodemo: add icon
William Jon McCann [Tue, 5 Nov 2013 19:11:50 +0000 (14:11 -0500)]
demo: add icon

12 years agowidget-factory: add desktop file for widget factory
William Jon McCann [Tue, 5 Nov 2013 13:56:30 +0000 (08:56 -0500)]
widget-factory: add desktop file for widget factory

12 years agoRevert "broadway: Fix gcc warning"
Jasper St. Pierre [Tue, 5 Nov 2013 16:13:57 +0000 (11:13 -0500)]
Revert "broadway: Fix gcc warning"

This reverts commit f0d3d72574ff0282ecb3aa6311677def57cef8f5.

12 years agowidget-factory: port to GtkApplication and GtkHeaderBar
William Jon McCann [Mon, 4 Nov 2013 21:49:05 +0000 (16:49 -0500)]
widget-factory: port to GtkApplication and GtkHeaderBar

12 years agoDo not reset the waiting_for_printer on status change
Chenthill Palanisamy [Tue, 5 Nov 2013 12:30:33 +0000 (13:30 +0100)]
Do not reset the waiting_for_printer on status change

* gtk/gtkprintunixdialog.c (printer_status_cb): Do not reset the
waiting_for_printer on status change as the default printer might
get added later.

https://bugzilla.gnome.org/show_bug.cgi?id=577642

12 years agoFix accelerators
Khaled Hosny [Mon, 4 Nov 2013 22:58:43 +0000 (00:58 +0200)]
Fix accelerators

12 years agowidget-factory: Add a pulsing progress bar
William Jon McCann [Sat, 2 Nov 2013 20:13:33 +0000 (16:13 -0400)]
widget-factory: Add a pulsing progress bar

12 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 4 Nov 2013 17:18:36 +0000 (18:18 +0100)]
Updated Spanish translation

12 years agoreftests: Add test for new :link and :visited
Benjamin Otte [Mon, 4 Nov 2013 15:34:16 +0000 (16:34 +0100)]
reftests: Add test for new :link and :visited

We cannot test visited links in GtkLabel, so we don't.

12 years agoGtkAboutDialog: Use :link and :visited for link colors
Timm Bäder [Tue, 8 Oct 2013 11:03:37 +0000 (13:03 +0200)]
GtkAboutDialog: Use :link and :visited for link colors

https://bugzilla.gnome.org/show_bug.cgi?id=709629

12 years agoGtkLinkButton: Use :link and :visited for the label's color
Timm Bäder [Tue, 8 Oct 2013 10:50:08 +0000 (12:50 +0200)]
GtkLinkButton: Use :link and :visited for the label's color

https://bugzilla.gnome.org/show_bug.cgi?id=709629

12 years agoGtkLabel: Use :visited and :link for link colors
Timm Bäder [Tue, 8 Oct 2013 10:44:44 +0000 (12:44 +0200)]
GtkLabel: Use :visited and :link for link colors

https://bugzilla.gnome.org/show_bug.cgi?id=709629

12 years agocss parser: Add :link and :visited
Timm Bäder [Tue, 8 Oct 2013 09:27:53 +0000 (11:27 +0200)]
css parser: Add :link and :visited

... which are both to be used for links instead of the current
-GtkWidget-link-color and -GtkWidget-visited-link-color

https://bugzilla.gnome.org/show_bug.cgi?id=709629

12 years agotests: Make testflowbox test not emit warnings
Benjamin Otte [Wed, 16 Oct 2013 13:40:40 +0000 (15:40 +0200)]
tests: Make testflowbox test not emit warnings

12 years agobroadway: Fix gcc warning
Benjamin Otte [Wed, 16 Oct 2013 12:42:35 +0000 (14:42 +0200)]
broadway: Fix gcc warning

12 years agoUpdated Greek translation
Dimitris Spingos [Mon, 4 Nov 2013 08:00:45 +0000 (10:00 +0200)]
Updated Greek translation

12 years agobuild: correctly require gio-unix with broadway
Manuel Bachmann [Mon, 4 Nov 2013 06:10:36 +0000 (07:10 +0100)]
build: correctly require gio-unix with broadway

12 years agoGtkEntryCompletion: fix warning
Lars Uebernickel [Sun, 3 Nov 2013 18:08:41 +0000 (19:08 +0100)]
GtkEntryCompletion: fix warning

12 years agogtk_entry_completion_get_cells: revert returning NULL
Lars Uebernickel [Sun, 3 Nov 2013 18:02:01 +0000 (19:02 +0100)]
gtk_entry_completion_get_cells: revert returning NULL

Too many applications and libraries depend on accessing the internally
created cell renderer. Allow that again, but print a warning.

12 years agogtktextattributes: Use an anonymous union instead of arch-testing #ifdef
Colin Walters [Wed, 30 Oct 2013 15:26:48 +0000 (11:26 -0400)]
gtktextattributes: Use an anonymous union instead of arch-testing #ifdef

This avoids having Gtk-3.0.gir differ on 32 vs 64 bit, which causes
issues for "multilib" in Fedora/OpenSUSE type systems.

See https://bugzilla.gnome.org/show_bug.cgi?id=711153 for more
information.

https://bugzilla.gnome.org/show_bug.cgi?id=711158

12 years agoeventbox: also draw css borders if specified
Paolo Borelli [Sat, 2 Nov 2013 11:18:25 +0000 (12:18 +0100)]
eventbox: also draw css borders if specified

https://bugzilla.gnome.org/show_bug.cgi?id=711324

12 years agogrid: draw css background and borders
Paolo Borelli [Sat, 2 Nov 2013 11:21:51 +0000 (12:21 +0100)]
grid: draw css background and borders

https://bugzilla.gnome.org/show_bug.cgi?id=711324

12 years agofixed: draw css background and borders
Paolo Borelli [Sat, 2 Nov 2013 11:21:30 +0000 (12:21 +0100)]
fixed: draw css background and borders

https://bugzilla.gnome.org/show_bug.cgi?id=711324

12 years agoGtkEntryCompletion: call cell_area()->clear()
Lars Uebernickel [Sun, 3 Nov 2013 13:05:44 +0000 (14:05 +0100)]
GtkEntryCompletion: call cell_area()->clear()

Call gtk_cell_layout_clear() on the area instead of the completion in
gtk_entry_completion_clear_text_column_renderer(), because it is also
called from within gtk_entry_completion_clear().

12 years agogtk_entry_completion_set_text_column: reuse old renderer
Lars Uebernickel [Sat, 2 Nov 2013 13:22:33 +0000 (14:22 +0100)]
gtk_entry_completion_set_text_column: reuse old renderer

gtk_entry_completion_set_text_column() always added a cell renderer,
regardless of whether there was an existing one already installed.  This
patch reuses an old renderer if it exists, but only if it was added by a
previous call to this function.

To avoid conflicts, all renderers that were added manually are removed
when calling this function. Also, the renderer added by this function is
removed when manually adding new renderers. This effectively gives
GtkEntryCompletion two modes (managed and manual cell renderers) and
allows seamless switching between the two.

This is a minor API break. However, this shouldn't be an issue in
practice as applications couldn't call set_text_column() more than once
because of this bug. Also, it is unlikely that many applications mix
set_text_column() and custom cell renderers. The interaction between the
two modes was erratic and not documented well.

https://bugzilla.gnome.org/show_bug.cgi?id=635499

12 years agoFix "make install"
Paolo Borelli [Sat, 2 Nov 2013 11:15:34 +0000 (12:15 +0100)]
Fix "make install"

These files were listed twice

12 years agoreftests: Add missing reftests to the test runner
Jasper St. Pierre [Fri, 1 Nov 2013 20:51:31 +0000 (16:51 -0400)]
reftests: Add missing reftests to the test runner

12 years agogtksettings: Allow setting the GTK+ theme with an envvar
Jasper St. Pierre [Fri, 1 Nov 2013 20:03:56 +0000 (16:03 -0400)]
gtksettings: Allow setting the GTK+ theme with an envvar

To test with Raleigh much easier.

12 years agoframe: Remove a couple strange casts...
Jasper St. Pierre [Fri, 1 Nov 2013 18:12:37 +0000 (14:12 -0400)]
frame: Remove a couple strange casts...

12 years agoWin32 : fixes Bug 679019 (Popup menu misplaced in dual monitor)
Manuel Bachmann [Fri, 1 Nov 2013 16:59:05 +0000 (17:59 +0100)]
Win32 : fixes Bug 679019 (Popup menu misplaced in dual monitor)

12 years agoGtkEntryCompletion: call setter for "text-column"
Lars Uebernickel [Thu, 31 Oct 2013 06:34:50 +0000 (23:34 -0700)]
GtkEntryCompletion: call setter for "text-column"

Call gtk_entry_completion_set_text_column() when setting the
"text-column" property directly.

The completion appeared empty when setting "text-column" directly (for
example from a GtkBuilder file), because the setter creates and adds the
GtkCellRendererText.

https://bugzilla.gnome.org/show_bug.cgi?id=710533

12 years agostack: Fix the slide animation if the child has a non-zero allocation position
Jasper St. Pierre [Fri, 1 Nov 2013 05:51:27 +0000 (01:51 -0400)]
stack: Fix the slide animation if the child has a non-zero allocation position

This can happen if the child has a margin, for instance.

12 years agostack: Scope some variables so that the code is clearer
Jasper St. Pierre [Fri, 1 Nov 2013 05:49:29 +0000 (01:49 -0400)]
stack: Scope some variables so that the code is clearer

... that the allocation magic here is for the transition of the
last visible child that's sliding out.

12 years agogtkoverlay: Remove get_preferred_width / get_preferred_height implementation
Jasper St. Pierre [Thu, 31 Oct 2013 20:20:02 +0000 (16:20 -0400)]
gtkoverlay: Remove get_preferred_width / get_preferred_height implementation

GtkBin now handles this for us.

12 years agoWin32: Honor the geometry when GDK_HINT_MAX_SIZE is set.
Cody Russell [Thu, 31 Oct 2013 20:54:28 +0000 (15:54 -0500)]
Win32: Honor the geometry when GDK_HINT_MAX_SIZE is set.

The MINMAXINFO struct was being populated based upon geometry hints when
GDK_HINT_MAX_SIZE flag was enabled, then promptly having its values blown
away with default values.

https://bugzilla.gnome.org/show_bug.cgi?id=711110

12 years agogtkbox: Draw backgrounds and borders
Jasper St. Pierre [Thu, 31 Oct 2013 16:18:59 +0000 (12:18 -0400)]
gtkbox: Draw backgrounds and borders

12 years agobroadway-server: Fix signedness issue
Jasper St. Pierre [Thu, 31 Oct 2013 16:19:59 +0000 (12:19 -0400)]
broadway-server: Fix signedness issue

12 years agoBroadway : Replaced be32toh() with win32-compatible ntohl()
Manuel Bachmann [Wed, 30 Oct 2013 23:43:58 +0000 (00:43 +0100)]
Broadway : Replaced be32toh() with win32-compatible ntohl()

12 years agoMake treeview cursor handling a bit more robust
Matthias Clasen [Wed, 30 Oct 2013 17:57:33 +0000 (13:57 -0400)]
Make treeview cursor handling a bit more robust

Clearing the model in a GtkTreeSelection::changed handler was
crashing. While it is not a 100% kosher thing to do, lets be
more robust here.